package com.it.you.base.stream;

import java.util.HashMap;
import java.util.Map;

public class StreamTest9 {
    public static void main(String[] args) {
        Map<Long, Boolean> map = new HashMap<>();
        map.put(1L, false);
        map.put(2L, false);
        map.put(3L, false);
        map.put(4L, false);
        map.put(5L, false);
        Boolean aBoolean = map.values().stream().filter(Boolean::booleanValue).findFirst().orElse(false);
        System.out.println(aBoolean);
    }
}
